import ajax from './ajax'

export default {
  searchUser(query, onSuccess) {
    ajax.get('/douban/search/users?q=' + query)
        .then(onSuccess);
  }
}